import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:xbxxz_assistant/strategy/drug_heaven_page.dart';
import 'package:xbxxz_assistant/strategy/drug_land_page.dart';
import 'package:xbxxz_assistant/strategy/land_map_profit_page.dart';
import 'package:xbxxz_assistant/strategy/stove_page.dart';

class LandPage extends StatefulWidget {
  @override
  _LandPageState createState() => _LandPageState();
}

class _LandPageState extends State<LandPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: ListView(
        children: <Widget>[
          Container(
            child: GestureDetector(
              child: ListTile(
                title: Text("地图收益(地上)"),
                trailing: Icon(Icons.chevron_right),
              ),
              onTapUp: (T) {
                Navigator.push(context, CupertinoPageRoute(builder: (context) {
                  return LandMapProfitPage();
                }));
              },
            ),
          ),
          Container(
            child: GestureDetector(
              child: ListTile(
                title: Text("丹药材料(凡品)"),
                trailing: Icon(Icons.chevron_right),
              ),
              onTapUp: (T) {
                Navigator.push(context, CupertinoPageRoute(builder: (context) {
                  return DrugLandPage();
                }));
              },
            ),
          ),
          Container(
            child: GestureDetector(
              child: ListTile(
                title: Text("丹药材料(仙品)"),
                trailing: Icon(Icons.chevron_right),
              ),
              onTapUp: (T) {
                Navigator.push(context, CupertinoPageRoute(builder: (context) {
                  return DrugHeavenPage();
                }));
              },
            ),
          ),
          Container(
            child: GestureDetector(
              child: ListTile(
                title: Text("炼丹炉"),
                trailing: Icon(Icons.chevron_right),
              ),
              onTapUp: (T) {
                Navigator.push(context, CupertinoPageRoute(builder: (context) {
                  return StovePage();
                }));
              },
            ),
          ),
        ],
      ),
    );
  }
}
